package com.newland.esp.mapper.echarts;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newland.esp.entity.deviceEntity.DeviceInfoEntity;
import com.newland.esp.vo.response.echarts.BarVo;
import com.newland.esp.vo.response.echarts.PieAndBarVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BarMapper extends BaseMapper<BarVo> {
    @Select("SELECT device_name, count FROM device_info")
    List<PieAndBarVO> selectDeviceCount();
}
